//
//  XiaofeiTableViewCell.m
//  jizhiyunduan
//
//  Created by 鞠超 on 16/4/19.
//  Copyright © 2016年 JC. All rights reserved.
//

#import "XiaofeiTableViewCell.h"

@implementation XiaofeiTableViewCell

- (instancetype )initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if(self)
    {
        [self p_setupView];
    }
    
    return self;
}

- (void)p_setupView
{
    self.text_1 = [[UILabel alloc] init];
    self.text_1.font = [UIFont systemFontOfSize:13];
//    self.text_1.textAlignment = NSTextAlignmentCenter;
    self.text_1.text = @"   智顺网络有限公司";
    [self.contentView addSubview:self.text_1];
    
    self.text_5 = [[UILabel alloc] init];
    self.text_5.font = [UIFont systemFontOfSize:11];
//    self.text_5.textAlignment = NSTextAlignmentCenter;
    self.text_5.textColor = [UIColor grayColor];
    self.text_5.text = @"   www.baidu.com";
    [self.contentView addSubview:self.text_5];
    
    self.text_2 = [[UILabel alloc] init];
    self.text_2.font = [UIFont systemFontOfSize:13];
    self.text_2.textAlignment = NSTextAlignmentCenter;
    self.text_2.text = @"11";
    [self.contentView addSubview:self.text_2];
    
    
    self.text_3 = [[UILabel alloc] init];
    self.text_3.font = [UIFont systemFontOfSize:13];
    self.text_3.textAlignment = NSTextAlignmentCenter;
    self.text_3.text = @"666.66";
    [self.contentView addSubview:self.text_3];
    
    
    self.text_4 = [[UILabel alloc] init];
    self.text_4.font = [UIFont systemFontOfSize:13];
    self.text_4.textAlignment = NSTextAlignmentCenter;
    self.text_4.text = @"6-26";
    [self.contentView addSubview:self.text_4];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    CGFloat list_x = (SCREEN_WIDTH - 10) / 6;
    
    self.text_1.frame = CGRectMake(5 , 5, list_x * 3, 20);
    
    self.text_5.frame = CGRectMake(5, 25, list_x * 3, 15);
    
    self.text_2.frame = CGRectMake(5 + list_x * 3, 10, list_x * 1, 25);

    self.text_3.frame = CGRectMake(5 + list_x * 4, 10, list_x * 1, 25);

    self.text_4.frame = CGRectMake(5 + list_x * 5, 10, list_x * 1, 25);
}


@end
